home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1996 July / Macworld (1996-07).dmg / System 7.5 Update 2.0 / FileMaker Pro 3.0 CD Extras / FileMaker And Apple Events / Syntax Examples / Events / Sort Examples < prev    next >
Text File  |  1996-01-25  |  470b  |  8 lines

  1. tell application "FileMaker Pro"
  2.     sort first layout of database 2 by field 2 of database 2
  3.     sort first database -- not specifying a field will unsort the database
  4.     sort by field "b" -- not specifying a layout defaults to the current layout
  5.     sort first layout by {field "a"} -- not specifying a sort order defaults to ascending
  6.     sort by {field "a", field "b"} in order {descending, ascending}
  7.     sort database 2 -- not specifying a field or layout unsorts database
  8. end tell